<?php
namespace data\model;

class Label extends BaseModel{
    protected $autoWriteTimestamp = true;

    public function getTypeTextAttr($value,$data)
    {
        $types = Article::getArticleType();
        return $types[$data['type']];
    }
}